using System;
using System.Collections.Generic;


namespace Gfw.Models.Account
{
	[Serializable]
    public partial class ActCompanyPay : IEquatable<ActCompanyPay>
	{

		#region Private Members

		private string _id; 
		private string _handlerid; 
		private decimal _paymoney; 
		private int _paytype; 
		private DateTime _paydate; 
		private string _payabstract; 		
		#endregion

		#region Constructor

		public ActCompanyPay()
		{
			_id = String.Empty; 
			_handlerid = String.Empty; 
			_paymoney = 0; 
			_paytype = 0; 
			_paydate = DateTime.MinValue; 
			_payabstract = String.Empty; 
		}
		#endregion // End of Default ( Empty ) Class Constuctor

		#region Public Properties
			
		public virtual string Id
		{
			get
			{ 
				return _id;
			}

			set	
			{	
				if( value == null )
					throw new ArgumentOutOfRangeException("Null value not allowed for Id", value, "null");
				
				if(  value.Length > 40)
					throw new ArgumentOutOfRangeException("Invalid value for Id", value, value.ToString());
				
				_id = value;
			}
		}
			
		public virtual string Handlerid
		{
			get
			{ 
				return _handlerid;
			}

			set	
			{	
				if( value == null )
					throw new ArgumentOutOfRangeException("Null value not allowed for Handlerid", value, "null");
				
				if(  value.Length > 40)
					throw new ArgumentOutOfRangeException("Invalid value for Handlerid", value, value.ToString());
				
				_handlerid = value;
			}
		}
			
		public virtual decimal PayMoney
		{
			get
			{ 
				return _paymoney;
			}
			set
			{
				_paymoney = value;
			}

		}
			
		public virtual int PayType
		{
			get
			{ 
				return _paytype;
			}
			set
			{
				_paytype = value;
			}

		}
			
		public virtual DateTime PayDate
		{
			get
			{ 
				return _paydate;
			}
			set
			{
				_paydate = value;
			}

		}
			
		public virtual string PayAbstract
		{
			get
			{ 
				return _payabstract;
			}

			set	
			{	
				if(  value != null &&  value.Length > 256)
					throw new ArgumentOutOfRangeException("Invalid value for PayAbstract", value, value.ToString());
				
				_payabstract = value;
			}
		}
			
				
		#endregion 

		#region Public Functions

		#endregion //Public Functions

		#region IEquatable members

        public virtual bool Equals(ActCompanyPay other)
		{
			if (other == this)
				return true;
		
			return ( other != null ) &&
				( this._id == other.Id );
				   
		}

		#endregion
		
	}
}
